package com.java83.service;

import com.java83.entity.Employee;

import java.util.List;

/**
 * @ClassName: EntryManagementService
 * @Description: EntryManagementService业务逻辑层总接口
 * @Author: TangShuJi
 * @Date: 2021/12/14 14:44
 * @Version: V1.0
 **/
public interface EntryManagementService {
    /**
     * @Author: TangShuJi
     * @Description: (业务逻辑层)添加员工接口
     * @Date: 2021/12/14 14:48
     * @Param: [employee] 需要被添加的员工
     * @Return: int
     **/
    public int add(Employee employee);

    /**
     * @Author: TangShuJi
     * @Description: (业务逻辑层)查询所有员工接口
     * @Date: 2021/12/14 15:19
     * @Param: [employee] 需要被查询的员工信息
     * @Return: java.util.List<com.java83.entity.Employee>
     **/

    public List<Employee> findAllEmployee(Employee employee);

    /**
     * @Author: TangShuJi
     * @Description: (业务逻辑层)通过id删除员工接口
     * @Date: 2021/12/14 17:30
     * @Param: [id] 需要被删除的员工id
     * @Return: int
     **/
    public int deleteEmployee(int id);

    /**
     * @Author: TangShuJi
     * @Description: (业务逻辑层)修改员工接口
     * @Date: 2021/12/14 17:42
     * @Param: [employee] 需要被修改的员工
     * @Return: int
     **/
    public int updateEmployee(Employee employee);
}
